package perso.marcr.lst.model;

import java.util.Comparator;

public class TaskList {

	private String jobName = null;
	private String taskId = null;
	private Status status = null;


	public String getJobName() {
		return jobName;
	}
	public void setJobName(String jobName) {
		this.jobName = jobName;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}	

	public Status getStatus() {
		return status;
	}
	public void setStatus(Status status) {
		this.status = status;
	}

	public static Comparator<TaskList> TaskListaComparator = new Comparator<TaskList>() {

		public int compare(TaskList el1, TaskList el2) {

			String szId1 = el1.getTaskId();
			String szId2 = el2.getTaskId();

			//ascending order
			return szId1.compareTo(szId2);
		}

	};
}
